In C++ concurrency in Action page 45 I have this code
#include <exception>
#include <memory>
struct empty_stack: std::exception
{
const char* what() const throw(); //<--- what does this mean?
}
Can anyone tell me what does this mean?
this empty_stack
exception is being thrown by another function if a stack is empty, such as
if(data.empty()) throw empty_stack();
but what does the line inside mean?
EDIT:
Someone posted (but was removed! wonder why) this link Thanks!